]> dgit.raspbian.org Git - gnome-shell.git/commit
systemActions: Fix initial visibility of logout action
authorSebastian Keller <skeller@gnome.org>
Fri, 13 Mar 2026 00:27:29 +0000 (01:27 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 14 Mar 2026 10:23:12 +0000 (10:23 +0000)
commit6f5f3c1f18a3597df04f831d4a8e1cdba2c0ecea
treefbd621f010a51d94cfeed08758c0ff927bd596da
parent5742c301cda8a7418a9d4d6a31efdb64b035417f
systemActions: Fix initial visibility of logout action

When `_updateLogout()` is called on login, the AccountsService user
might not have been loaded yet. This would have resulted in all values
being null/false, including `local_account`. Since `!localAccount` is
one of the cases where the action is available, this would have wrongly
resulted in the item being shown when not intended to be shown. But only
until something triggers another call of `_updateLogout()`, such as
locking/unlocking the session.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9100
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4121>
js/misc/systemActions.js